<!doctype html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <title>Falsy Bouncer</title>
  <link rel="stylesheet" href="app.css">
</head>

<body>
  <div id="view"></div>
</body>

</html>
<script>
  function bouncer(arr) {
    // 请把你的代码写在这里
    return arr.filter(Boolean);
  }

  var str = bouncer([7, "ate", "", false, 9]);
  document.getElementById("view").innerHTML = str;
  console.log(str);
</script>